﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication1
{
    public class Data : IEquatable<Data>
    {
        public string label;
        public int x;
        public int y;
        public int color;
        public Data(string e, int x, int y)
        {
            label = e;
            this.x = x;
            this.y = y;
        }
        public Data(string e, int x, int y, int _color)
        {
            label = e;
            this.x = x;
            this.y = y;
            color = _color;
        }
        public bool Equals(Data other)
        {
            if (label == other.label && x == other.x && y == other.y)
            {
                return true;
            }
            return false;
        }

        public void setParams(string e, int x, int y)
        {
            label = e;
            this.x = x;
            this.y = y;
        }
        public void setParams(string e, int x, int y, int _color)
        {
            label = e;
            this.x = x;
            this.y = y;
            color = _color;
        }
    }
}
